package com.eshealthy.dao;

import com.eshealthy.entity.Doctor;
import com.eshealthy.entity.Patient;
import com.eshealthy.entity.Scheduling;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.print.Doc;
import java.util.List;

@Mapper
public interface DoctorDao {
    void save(Doctor doctor);

    Doctor findAllDoctor(String tel);

    void registerArea(Integer area);
    void updateStatus(Integer id);
    List<Scheduling> findTime(String aid,String str);

    List<Patient> findSchedule(@Param("id")Integer id, @Param("start")Integer start,@Param("rows") Integer rows);
    Integer findTotalsSchedule(@Param("id")Integer id);

    Patient findOne(@Param("id") Integer id);

    Doctor check(Integer id);
    String pname(Integer id);

    String findPid(Integer id);
}
